//package game;
//
//import field.Board;
//import piece.Piece;
//
//public class AI implements Runnable {
//    Board board = new Board();
//
//    public AI(Board board) {
//        this.board = board;
//    }
//
////    public void attack() {
////
////    }
//
//    public void defend() {
//        try {
//            Board temp = (Board) board.clone();
//            boolean place = false
//            for (int i = 0; i < 15; ++i) {
//                for (int j = 0; j < 15; ++j) {
//                    if (temp.canPlace(i, j)) {
//                        temp.place(i, j, new Piece(true));
//                        switch (temp.checkX(i, j, true)) {
//                            case 3:
//                                for (int k = 1; k <= 3; ++k) {
//                                    if(temp.canPlace(i,j+k)){
//
//                                    }
//                                }
//                                break;
//                            case 4:
//                                break;
//                        }
//
//                        int y = temp.checkY(i, j, true);
//                        int zl = temp.checkZL(i, j, true);
//                        int zr = temp.checkZR(i, j, true);
//                    }
//                }
//            }
//        } catch (CloneNotSupportedException e) {
//            e.printStackTrace();
//        }
//
//    }
//
//    public void think() {
//
//    }
//
//    @Override
//    public void run() {
//
//    }
//}
//
///**
// //     * add the option button's action
// //     */
////    public void addOptionButtonEvent() {
////        view.getButton(2).addActionListener(e -> {
////            JDialog dialog = new JDialog(view.getFrame(), "Option");
////            dialog.setSize(250, 170);
////            dialog.setLocation(512, 300);
////            dialog.setLayout(new GridLayout(2, 1));
////
////            String[] c1 = {"Computer", "Player"};
////            String[] c2 = {"Black (Offensive)", "White (Defensive)"};
////            JComboBox opponent = new JComboBox(c1);
////            opponent.setBorder(BorderFactory.createTitledBorder("Choose your opponent"));
////            JComboBox color = new JComboBox(c2);
////            color.setBorder(BorderFactory.createTitledBorder("Choose your piece's color"));
////
////            dialog.add(opponent);
////            dialog.add(color);
////            dialog.setVisible(true);
////        });
////    }
